#include "lua_scada.h"
#include <utils/logger.h>

namespace protocol {
LuaScada::LuaScada() {}

void LuaScada::GetProtocolName(int ignore, std::string name)
{
	HTELINK_LOG_DEBUG("ignore: %d, %s", ignore, name.c_str());
	if (subGetNameResult) {
		subGetNameResult(name);
	}
}
void LuaScada::SubscribeGetNameResult(
	std::function<void(std::string)> getResult)
{
	subGetNameResult = getResult;
}
} // namespace protocol